package com.hospital.hospitalserver.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 系统常用错误
 * */
@Getter
@AllArgsConstructor
public enum ResultCodeEnum {
    // 统一操作信息
    SUCCESS(200,"操作成功"),
    ERROR(203,"操作失败"),
    // 系统错误信息
    SYSTEM_ERROR(500,"系统错误"),
    // 用户相关错误信息
    LOGIN_SUCCESS(200,"登录成功"),
    LOGIN_ERROR(401,"登录失败");

    private final Integer code;
    private final String msg;
}
